home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group96a.txt
/
000091_icon-group-sender _Wed Apr 17 17:36:13 1996.msg
< prev
next >
Wrap
Internet Message Format
|
1996-09-05
|
1KB
Received: by cheltenham.cs.arizona.edu; Wed, 17 Apr 1996 12:46:26 MST
Message-Id: <31751DFD.302F@tees.ac.uk>
Date: Wed, 17 Apr 1996 17:36:13 +0100
From: Hamish Lawson <H.Lawson@tees.ac.uk>
Organization: University of Teesside, School of Computing and Maths
X-Mailer: Mozilla 2.01Gold (Win95; I)
Mime-Version: 1.0
To: icon-group@cs.arizona.edu
Subject: Splitting and joining strings
References: <s16ce499.081@wise.net> <317260B1.7F93@tees.ac.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Errors-To: icon-group-errors@cs.arizona.edu
Status: O
Before I rolled my own I thought I'd have a look in the Icon Program Library for a
couple of procedures I need.
The first should split a string on a specified separator, along the lines of
split("Joe:Sue:Bob:Ann", ":") produces "Joe", "Sue", "Bob", "Ann"
The second should join the elements of a list into a string, with each element
separated by a specified separator, along the lines of:
join(["Joe", "Sue", "Bob", "Ann"], ":") produces "Joe:Sue:Bob:Ann"
I couldn't find any such procedures in the IPL. Have I missed them?
| Hamish Lawson, School of Computing and Mathematics,
| University of Teesside, Middlesbrough, Cleveland, UK, TS1 3BA
| Tel: +44 1642 212695 Fax: +44 1642 342604
| E-mail: H.Lawson@tees.ac.uk